package com.ashley.day_0405;
import java.util.Scanner;
public class SwitchCaseExer1 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println("请输入你的成绩：(0-100)");
		int score = scan.nextInt();
		score = score / 10;
		switch (score) {
		case 10:
		case 9:
			System.out.println("等级：A");
			break;
		case 8:
		case 7:
			System.out.println("等级：B");
			break;
		case 6:
			System.out.println("等级：C");
			break;
		default:
			System.out.println("等级：D");
			break;
		}
	}

}
